package com.bl.weilan.dao.repository;

import com.bl.weilan.dao.model.InstitutionCompanyEntity;
import com.bl.weilan.dao.model.InstitutionTeamEntity;
import com.bl.weilan.dao.model.PeopleEntity;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface InstitutionTeamRepository extends JpaRepository<InstitutionTeamEntity, String> {

    Page<InstitutionTeamEntity> findByInstitutionIdOrderByWeight(String id, Pageable pageable);

    List<InstitutionTeamEntity> findByInstitutionIdOrderByWeight(String id);
}
